package com.uhylab.uhuvinetest.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by xyb on 16/1/14 at UHylab
 *
 * @version 1.0
 */


public class History_Content implements Parcelable {
    private String name;
    private String content;
    private int anInt;

    public History_Content() {
    }

    public History_Content(Parcel in) {
        name = in.readString();
        content = in.readString();
        anInt = in.readInt();
    }

    public static final Creator<History_Content> CREATOR = new Creator<History_Content>() {
        @Override
        public History_Content createFromParcel(Parcel in) {
            return new History_Content(in);
        }

        @Override
        public History_Content[] newArray(int size) {
            return new History_Content[size];
        }
    };

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getAnInt() {
        return anInt;
    }

    public void setAnInt(int anInt) {
        this.anInt = anInt;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(name);
        dest.writeString(content);
        dest.writeInt(anInt);
    }
}

